<%@page import="com.itwill.ecom.boardQnAReply.BoardQnAReplyService"%>
<%@page import="com.itwill.ecom.boardQnAReply.BoardQnAReplyBeans"%>
<%@page import="com.itwill.ecom.boardQnAReply.BoardQnAReplyServiceImpl"%>
<%@page import="java.util.List"%>
<%@page import="com.itwill.ecom.boardQnA.BoardQnABeans"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="com.itwill.ecom.boardQnA.BoardQnAServiceImpl"%>
<%@page import="com.itwill.ecom.boardQnA.BoardQnAService"%>

<%@page import="java.util.ArrayList"%>

<%@ page language="java" contentType="text/plain; charset=utf-8"
    pageEncoding="utf-8"%>
<%

/////////////// 리스트 호출 시 이곳에서 리스트 정보를 받아서 뿌려준다.. ////////////////
/////////////// 뿌려줄 정보는 게시판 no,nickname,title 정보만 보내준다 //////////////

WebApplicationContext webContext = WebApplicationContextUtils.getWebApplicationContext(application);
BoardQnAReplyServiceImpl boardQnAReplyService=(BoardQnAReplyServiceImpl)webContext.getBean("boardQnAReplyService");

int qnaboard_reply_group = Integer.parseInt(request.getParameter("qnaboard_no").trim());



List<BoardQnAReplyBeans> boardQnAList =boardQnAReplyService.getByNoBoardQnAReply(qnaboard_reply_group);
%>
[
<%
for(int i=0;i<boardQnAList.size();i++){
	BoardQnAReplyBeans boardQnABeans=boardQnAList.get(i);	
%>

{
"qnaboard_reply_no":"<%=boardQnABeans.getQnaboard_reply_no()%>",
"qnaboard_reply_nickname":"<%=boardQnABeans.getQnaboard_reply_nickname()%>",
"qnaboard_reply_title":"<%=boardQnABeans.getQnaboard_reply_title()%>",
"qnaboard_reply_content":"<%=boardQnABeans.getQnaboard_reply_content()%>",
"qnaboard_reply_date":"<%=boardQnABeans.getQnaboard_reply_date()%>",
"qnaboard_reply_id":"<%=boardQnABeans.getQnaboard_reply_id()%>"

}
<%
if((i+1)!=boardQnAList.size())
	out.print(",");
}
%>
]






